#!/usr/bin/env bash

CURR_DATE=$(date +%Y-%m-%d)
CURR_DATE_INFO_DIR=../info/$CURR_DATE/jd/

YESTERDAY=`date +%Y-%m-%d -d  "1 day ago"`
echo $YESTERDAY
YESTERDAY_INFO_DIR=../info/$YESTERDAY/jd

awk 'BEGIN { cmd="cp -ri ${YESTERDAY_INFO_DIR}/* ${CURR_DATE_INFO_DIR}/"; print "copy ok!" |cmd; }'